#include <bits/stdc++.h>
using namespace std;
int n;
int cnt[100005];
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    for (int i=1;i<=n;i++) {
        int x;
        cin >> x;
        cnt[x]++;
    }
    int res = 0;
    for (int i=1;i<=100000;i++) {
        res = max(res - cnt[i], 0);
        res += cnt[i];
    }
    cout << res;
    return 0;
}